package com.wordlearning.app;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.context.annotation.ComponentScan;
import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.springframework.context.annotation.Bean;
import org.mybatis.spring.annotation.MapperScan;

// @SpringBootApplication(scanBasePackages = "com.wordlearning")
@SpringBootApplication(exclude = {
		org.springframework.boot.autoconfigure.jdbc.XADataSourceAutoConfiguration.class,
		org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration.class,
		org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration.class,
		org.springframework.boot.autoconfigure.transaction.jta.JtaAutoConfiguration.class
}) 
@EnableCaching
// @EnableAsync 
@ComponentScan(basePackages = {"com.wordlearning.app", "com.wordlearning.third"})
public class WordStudyApplication {
    public static void main(String[] args) {
        SpringApplication.run(WordStudyApplication.class, args);		
        System.out.println("(♥◠‿◠)ﾉﾞ   启动成功   ლ(´ڡ`ლ)ﾞ  \n" );
    }

}